package org.ihelpuoo.io;

import java.io.IOException;
import java.io.OutputStream;

public class StringBufferOutputStream extends OutputStream
{

	private StringBuffer	sb;

	public StringBufferOutputStream(StringBuffer sb)
	{
		this.sb = sb;
	}

	@Override
	public void write(int b) throws IOException
	{
		sb.append((char)b);
	}

}
